from flask import Flask
from config import Config
from flask_script import Manager
from flask_migrate import MigrateCommand, Migrate
from info import create_app, db

app = create_app('development')
# 使用manager管理
manager = Manager(app)
# 数据库迁移
Migrate(app, db)
manager.add_command('db', MigrateCommand)

@app.route('/index')
def index():
    return 'index'

if __name__ == '__main__':
    manager.run()
